package com.simple.mybaits.simplemybatis.statement;

import com.simple.mybaits.simplemybatis.comandEnum.SqlCommand;

import java.lang.reflect.Method;

/**
 * @author :  zxj
 * @package :  com.simple.mybaits.simplemybatis.statement
 * @date :  2018/5/21
 * @description : mapperStatement的实体
 */
public class MapperStatement {

    /**
     * mapperStatementId
     */
    private  String mapperId;

    /**
     * sql
     */
    private String boundSql;

    /**
     * 类型
     */
    private Class result;


    /**
     * 方法
     */
    private Method method;


    /**
     * 参数
     */
    private Class<?>[] params;

    /**
     * 执行命令
     */
    private SqlCommand sqlCommand;

    public String getMapperId() {
        return mapperId;
    }

    public void setMapperId(String mapperId) {
        this.mapperId = mapperId;
    }

    public String getBoundSql() {
        return boundSql;
    }

    public void setBoundSql(String boundSql) {
        this.boundSql = boundSql;
    }


    public Class getResult() {
        return result;
    }

    public void setResult(Class result) {
        this.result = result;
    }

    public Class<?>[] getParams() {
        return params;
    }

    public void setParams(Class<?>[] params) {
        this.params = params;
    }

    public SqlCommand getSqlCommand() {
        return sqlCommand;
    }

    public void setSqlCommand(SqlCommand sqlCommand) {
        this.sqlCommand = sqlCommand;
    }

    public Method getMethod() {
        return method;
    }

    public void setMethod(Method method) {
        this.method = method;
    }
}
